<%@ page language="java"  pageEncoding="UTF-8"%>
<jsp:include page="../../inc.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jsp/weixin/menu/list.js"></script>

<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false">
		<table id="_treeDatagrid"></table>	
	</div>
</div>

<!-- 右键菜单 -->
<div>
	<div id="treeridContextMenu" class="easyui-menu" style="width:200px">
		<div data-options="iconCls:'icon-add'" onclick="addRow()">增加</div>
		<div data-options="iconCls:'icon-remove'" onclick="deleteRow()">删除</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateRow()">修改</div>
		<div data-options="iconCls:'icon-application_view_tile'" onclick="createRow()">创建</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-redo'" onclick="unselectRow()">取消选中</div>
		<div data-options="iconCls:'icon-reload'" onclick="reloadRow()">刷新</div>
	</div>
</div>

<!-- 添加菜单dialog -->
<div id="dialogAddRow" style="width:400px;height:300px;padding:10px;display:none;ooverflow-x:hidden;overflow-y:scroll">
	<form id="formAddRow" method="post">
		<input type="hidden" name="id" id="id"/>
		<input type="hidden" name="pid" id="pid"/>
		<table class="dialogTable">
			<tr>
				<th>菜单名称</th>
				<td><input id="name" name="name"/></td>
			</tr>
			<tr>
				<th>动作类型</th>
				<td><input id="type" name="type"/></td>
			</tr>
			<tr id="msgReplyId1">
				<th>返回消息</th>
				<td><input id="msgReplyId" name="msgReplyId"/></td>
			</tr>
			<tr id="url1">
				<th>网址链接</th>
				<td><input id="url" name="url"/></td>
			</tr>
			<tr id="msgType1">
				<th>消息类型</th>
				<td><input id="msgType"/></td>
			</tr>
		</table>
	</form>
</div>

</body>
</html>